// 门店端路由
const storeRoutes = {
  path: '/store',
  name: 'StoreLayout',
  component: () => import('@/views/store/layout.vue'),
  redirect: '/store/dashboard',
  meta: { 
    title: '门店端', 
    requiresAuth: true,
    roles: ['store']
  },
  children: [
    {
      path: 'dashboard',
      name: 'StoreDashboard',
      component: () => import('@/views/store/dashboard.vue'),
      meta: { title: '门店概览', icon: 'dashboard' }
    },
    {
      path: 'inventory',
      name: 'StoreInventory',
      component: () => import('@/views/store/inventory/index.vue'),
      meta: { title: '库存管理', icon: 'inventory' }
    },
    {
      path: 'sales',
      name: 'StoreSales',
      component: () => import('@/views/store/sales/index.vue'),
      meta: { title: '销售收银', icon: 'sales' }
    },
    {
      path: 'display',
      name: 'StoreDisplay',
      component: () => import('@/views/store/display/index.vue'),
      meta: { title: '药品陈列', icon: 'display' }
    },
    {
      path: 'report',
      name: 'StoreReport',
      component: () => import('@/views/store/report/index.vue'),
      meta: { title: '销售报表', icon: 'report' }
    },
    {
      path: 'order',
      name: 'StoreOrder',
      component: () => import('@/views/store/order/index.vue'),
      meta: { title: '订单管理', icon: 'order' }
    },
    {
      path: 'order/detail/:id',
      name: 'StoreOrderDetail',
      component: () => import('@/views/store/order/detail.vue'),
      meta: { title: '订单详情', icon: 'order-detail' },
      hidden: true
    }
  ]
}

export default storeRoutes